<?xml version='1.0' encoding='UTF-8' ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
      xmlns:h="http://java.sun.com/jsf/html"
      xmlns:f="http://java.sun.com/jsf/core"
      xmlns:ui="http://java.sun.com/jsf/facelets">
    <h:head>
        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/>
        <link rel="shortcut icon" href="images/logo W.jpg" />
        <title>Work to Worker</title>
        <style>
            a:link {text-decoration:none;}
            #menudiv2:hover{background-color: #FF6600;color: #1A3665}
        </style>
        <style type="text/css">
            @font-face {
                font-family: "jokerman";
                src: url('font/VIVALDII.TTF') format("truetype");
            }  
            @media screen and (-webkit-min-device-pixel-ratio:0)
            { 
                #fix1 { margin-top: 0px } 
                #fix2 { margin-top: 15px }
                #check{margin-top: 15px}
                #fullname{margin-top: 2px}
                #age, #gender, #ident, #dateIs, #address, #country, #phone {margin-top: 21px}
                #birth, #province{margin-top: 19px}
                #placeIs{margin-top: 20px}
                #email{margin-top: 21px}
            }
            @-moz-document url-prefix()
            {
                #fix1 { margin-top: -20px }
            #check,#birth, #province{margin-top: 20px}
            #age, #gender, #ident, #dateIs, #address, #country, #phone {margin-top: 21px}

            #placeIs{margin-top: 22px}
            #email{margin-top: 24px}
            }
        </style>
    </h:head>
    <h:body style="background-color:  #1A3665">
        <f:view locale="#{languageBean.locale}">

            <div style="width: 1000px;margin: auto;margin-top: 20px;background-color: white;border-radius: 10px;-moz-border-radius: 10px">
                <ui:include src="headertemplate1.xhtml" />
                <h:form>
                    <div>                
                        <ul style="margin-top: 50px;margin-left: -20px">
                            <li style="display: inline-block;width: 200px">
                                <ul>
                                    <li style="list-style: none;overflow: hidden;background-image: url('images/treeTabBg.gif');padding: 5px 0px 5px 55px;font-size: 20px;border-radius: 10px;-moz-border-radius: 10px;border: 1px;border-style: solid;border-color: #E9E9E9"> <h:outputText value="#{msg['global.Step']}" /> 1 <img src="images/Pause.png" width="20" height="20" style="" alt="done"/></li>
                                    <li style="list-style: none;overflow: hidden;background-image: url('images/treeTabBg.gif');padding: 5px 0px 5px 55px;font-size: 20px;margin-top: 5px;border-radius: 10px;-moz-border-radius: 10px;border: 1px;border-style: solid;border-color: #E9E9E9"> <h:outputText value="#{msg['global.Step']}" /> 2</li>
                                    <li style="list-style: none;overflow: hidden;background-image: url('images/treeTabBg.gif');padding: 5px 0px 5px 55px;font-size: 20px;margin-top: 5px;border-radius: 10px;-moz-border-radius: 10px;border: 1px;border-style: solid;border-color: #E9E9E9"> <h:outputText value="#{msg['global.Step']}" /> 3</li>
                                </ul>
                            </li>
                            <li style="display: inline-block;width: 670px;vertical-align: top;margin-left: 40px;border: 1px;border-style: double dashed;border-top-right-radius: 10px;-moz-border-top-left-radius: 10px;-moz-border-top-right-radius: 10px;border-top-left-radius: 10px">
                                <ul style="margin-top: 20px;text-align: center">
                                    <li style="display: inline;font-size: 20px;font-weight: bold;color: #FF6600">
                                        <h:outputText value="#{msg['global.Title']}" /> :*
                                    </li>
                                    <li style="display: inline">
                                        <h:inputText style="width: 300px" value="#{workerCreateCV.cv.title}" id="titleCV" required="true" requiredMessage="* Title is required"/>
                                    </li>
                                </ul>
                                <ul style="margin-left: 197px">
                                    <li style="list-style: none"><h:message for="titleCV" style="color: red" /> </li>
                                </ul>
                                <div style="font-size: 20px;font-weight: bold;border: 1px;border-bottom-style:  dotted;padding : 20px 0px 5px 20px">
                                    <font style="color: #FF6600"> <h:outputText value="#{msg['global.Step']}" /> 1 : <h:outputText value="#{msg['global.Your_Information']}" /></font>
                                </div>
                                <div id="fix2">

                                    <ul>
                                        <li style="display: inline-block;width: 220px;margin-left: -30px;vertical-align: top;text-align: right;font-weight: bold">
                                            <ul  id="fullname">
                                                <li style="list-style: none"> <h:outputText value="#{msg['global.Fullname']}" /> :<font style="color: red"> *</font></li>
                                            </ul>
                                            <ul id="gender">
                                                <li style="list-style: none"> <h:outputText value="#{msg['global.Gender']}" /> :<font style="color: red"> *</font></li>
                                            </ul>
                                            <ul id="birth">
                                                <li style="list-style: none"> <h:outputText value="#{msg['global.Birthday']}" /> :<font style="color: red"> *</font></li>
                                            </ul>
                                            <ul id="ident">
                                                <li style="list-style: none"> <h:outputText value="#{msg['global.Identity_Card_Number']}" /> :<font style="color: red"> *</font></li>
                                            </ul> 
                                            <ul id="dateIs">
                                                <li style="list-style: none"> <h:outputText value="#{msg['global.Date_of_Issue']}" /> :<font style="color: red"> *</font></li>
                                            </ul>
                                            <ul id="placeIs">
                                                <li style="list-style: none"> <h:outputText value="#{msg['global.Place_of_Issue']}" /> :<font style="color: red"> *</font></li>
                                            </ul>
                                            <ul id="address">
                                                <li style="list-style: none"> <h:outputText value="#{msg['global.Address']}" /> :<font style="color: red"> *</font></li>                                        
                                            </ul>
                                            <ul id="country">
                                                <li style="list-style: none"> <h:outputText value="#{msg['global.Province']}" /> :<font style="color: red"> *</font></li>                                        
                                            </ul>
                                            <ul id="province">
                                                <li style="list-style: none"> <h:outputText value="#{msg['global.Country']}" /> :<font style="color: red"> *</font></li>                                        
                                            </ul>
                                            <ul id="phone">
                                                <li style="list-style: none"> <h:outputText value="#{msg['global.phone']}" /> :<font style="color: red"> *</font></li>                                  
                                            </ul>       
                                            <ul id="email">
                                                <li style="list-style: none">Email :<font style="color: red"> *</font></li>                                        
                                            </ul>

                                        </li>
                                        <li style="display: inline-block;vertical-align: top;margin-left: -15px">
                                            <ul>
                                                <li style="display: inline"><h:inputText style="width:170px" value="#{workerCreateCV.worker.name}" id="workerName" required="true" requiredMessage="* Full name is required"/></li>
                                                <li style="display: inline"><h:message for="workerName" style="color: red"/></li>
                                            </ul>
                                            <ul id="check">
                                                <li style="display: inline;">
                                                    <h:selectOneRadio value="#{workerCreateCV.gender_temp}" >
                                                        <f:selectItem itemValue="1" itemLabel="Male" />
                                                        <f:selectItem itemValue="0" itemLabel="Female" />
                                                    </h:selectOneRadio>
                                                </li>

                                            </ul>
                                            <ul id="check">
                                                <li style="display: inline;">
                                                    <h:selectOneMenu value="#{workerCreateCV.dayofbirth}">
                                                        <f:selectItem itemValue="1" itemLabel="1" />
                                                        <f:selectItem itemValue="2" itemLabel="2" />
                                                    </h:selectOneMenu>
                                                </li>
                                                <li style="display: inline;">
                                                    <h:selectOneMenu value="#{workerCreateCV.monofbirth}">
                                                        <f:selectItem itemValue="January" itemLabel="January" />
                                                        <f:selectItem itemValue="February" itemLabel="February" />
                                                    </h:selectOneMenu>
                                                </li>
                                                <li style="display: inline;">
                                                    <h:selectOneMenu value="#{workerCreateCV.yearofbirth}">
                                                        <f:selectItem itemValue="1999" itemLabel="1999" />
                                                        <f:selectItem itemValue="2000" itemLabel="2000" />
                                                    </h:selectOneMenu>
                                                </li>
                                            </ul>
                                            <ul id="check">
                                                <li style="display: inline;">
                                                    <h:inputText style="width:170px" value="#{workerCreateCV.cv.identityCardNumber}" id="idenCardNo" required="true" requiredMessage="* Identity Card is required" validatorMessage="* Identity Card is not valid">
                                                        <f:validateRegex pattern="^0[0-9]{8}"  />
                                                    </h:inputText>
                                                </li>  
                                                <li style="display: inline"><h:message for="idenCardNo" style="color: red"/></li>
                                            </ul>
                                            <ul id="check">
                                                <li style="display: inline;">
                                                    <h:selectOneMenu value="#{workerCreateCV.dayofis}">
                                                        <f:selectItem itemValue="1" itemLabel="1" />
                                                        <f:selectItem itemValue="2" itemLabel="2" />
                                                    </h:selectOneMenu>
                                                </li>
                                                <li style="display: inline;">
                                                    <h:selectOneMenu value="#{workerCreateCV.monofis}">
                                                        <f:selectItem itemValue="January" itemLabel="January" />
                                                        <f:selectItem itemValue="February" itemLabel="February" />
                                                    </h:selectOneMenu>
                                                </li>
                                                <li style="display: inline;">
                                                    <h:selectOneMenu value="#{workerCreateCV.yearofis}">
                                                        <f:selectItem itemValue="1999" itemLabel="1999" />
                                                        <f:selectItem itemValue="2000" itemLabel="2000" />
                                                    </h:selectOneMenu>
                                                </li>
                                            </ul>
                                            <ul id="check">
                                                <li style="display: inline"><h:inputText style="width:170px" value="#{workerCreateCV.cv.placeIssueIdcard}" id="placeofIs" required="true" requiredMessage="* Place of Issue is required"/></li>
                                                <li style="display: inline"><h:message for="placeofIs" style="color: red"/></li>
                                            </ul>
                                            <ul id="check">
                                                <li style="display: inline;"><h:inputText style="width:170px" value="#{workerCreateCV.worker.address}" id="workerAddress" required="true" requiredMessage="* Address is required"/></li>
                                                <li style="display: inline"><h:message for="workerAddress" style="color: red"/></li>
                                            </ul>
                                            <ul id="check">
                                                <li style="display: inline;"><h:inputText style="width:170px" value="#{workerCreateCV.cv.province}" id="cvProvince" required="true" requiredMessage="* Province is required"/></li>
                                                <li style="display: inline"><h:message for="cvProvince" style="color: red"/></li>
                                            </ul>
                                            <ul id="check">
                                                <li style="display: inline;"><h:inputText style="width:170px" value="#{workerCreateCV.cv.country}" id="cvCountry" required="true" requiredMessage="* Country is required"/></li>
                                                <li style="display: inline"><h:message for="cvCountry" style="color: red"/></li>
                                            </ul>
                                            <ul id="check">
                                                <li style="display: inline;">
                                                    <h:inputText style="width:170px" value="#{workerCreateCV.worker.phone}" id="workerPhone" required="true" requiredMessage="* Phone is required" validatorMessage="* Phone is not valid">
                                                        <f:validateRegex pattern="^09[0-9]{8}||^01[0-9]{9}"  />
                                                    </h:inputText>
                                                </li>
                                                <li style="display: inline"><h:message for="workerPhone" style="color: red"/></li>
                                            </ul>
                                            <ul id="check">
                                                <li style="display: inline;">
                                                    <h:inputText style="width:170px" value="#{workerCreateCV.worker.email}" required="true" requiredMessage="* Email is required" id="workerEmail" validatorMessage="* Email is not valid">
                                                        <f:validateRegex pattern="([^.@]+)(\.[^.@]+)*@([^.@]+\.)+([^.@]+)"  />
                                                    </h:inputText>
                                                </li>
                                                <li style="display: inline"><h:message for="workerEmail" style="color: red"/></li>
                                            </ul>
                                        </li>

                                    </ul> 
                                    <ul style="margin-top: 20px;margin-left: 40px;border:1px;border-top-style: dotted;width: 550px">
                                        <div style="margin-top: 20px">                                            
                                            <li style="display: inline;margin-left: 450px"><h:commandLink action="#{workerCreateCV.moveto2()}"  value="Next"  style="border: none;color: white;font-size: 20px;background-color: #1A3665;padding: 5px 10px 5px 10px;"/></li> 

                                        </div>
                                    </ul>

                                </div>
                                <br/>
                                <br/>
                            </li>
                        </ul>
                    </div>
                    <br/>
                    <br/>
                </h:form>
            </div>
            <div style="color: white; height: 100px;border-radius: 10px;-moz-border-radius: 10px;border: 1px;border-style: solid;border-color: white;margin-top: 20px">
                <div style="text-align: right; padding-top: 20px;padding-right: 30px">
                    Copyright © by Group 1
                    <br />
                    Project Name : Work to Worker
                    <br />
                    Member in Group : Mr Bùi Hồng Hải , Mr Nguyễn Văn Cường , Mr Nguyễn Nhất Linh , Mr Lưu Thế Thông , Mr Trần Trung Hiếu
                </div>
            </div>

        </f:view>
    </h:body>
</html>

